{config_load file="index.conf"}
{include file="inc/doctype.tpl"}

<head>
    <title>Registration</title>
    {include file="inc/include.tpl"}
</head>

<body>

{include file="inc/logo.tpl"}
{include file="inc/global_menu.tpl"}

{if $registration}
    Congratulations! You are successfully registed. You can upload your photo rigth  <a href="/user/upload/">now</a> or later, from your <a href="/">accont</a>.
{else}
	<form action="" method="post">
	    <div align="left"><strong>{$error.empty}</strong></div>
	    Username:<sup>*</sup><div><strong>{$error.username}</strong></div>
	    <input type="text" name="form[username]" value="{$form.username|escape}" /><br />
	    Password:<sup>*</sup><div><strong>{$error.password}</strong></div>
	    <input type="password" name="form[password]" value="" /><br />
	    Password again:<sup>*</sup><div></div>
	    <input type="password" name="form[password_again]" value="" /><br />
	    E-mail:<sup>*</sup><div><strong>{$error.mail}</strong></div>
	    <input type="text" name="form[mail]" value="{$form.mail|escape}" /><br />
	    Gender:<sup>*</sup><div></div>
	        <select name="form[sex]">
                <option value="" />Your gender
                <option value="male" {if $form.sex == 'male'}selected{/if} />Male
                <option value="female" {if $form.sex == 'female'}selected{/if} />Female
            </select><br />
	    Age:<sup>*</sup><div><strong>{$error.born}</strong></div>
	    {html_select_date selected_month="$month" selected_year="$year" selected_day="$day" start_year="-60" end_year="-8"}<br />
	    Phone number:<sup>*</sup><div><strong>{$error.number}</strong></div>
	    <input type="text" name="form[number]" value="{$form.number|escape}" /><br />
	    Country/region:<sup>*</sup><div></div>
	    <input type="text" name="form[country]" value="{$form.country|escape}" /><br />
	    City/other country:<sup>*</sup><div></div>
	    <input type="text" name="form[city]" value="{$form.city|escape}" /><br />
	    About yourself:<div></div>
	    <input type="text" name="form[description]" value="{$form.description|escape}" /><br />
	    <input type="submit" name="submit" value="Sign up" />
	</form>
{/if}

</body>

</html>